import java.awt.Color;
import java.awt.Graphics;


public class screenGraphics {

	 public static void paintScreen(Graphics g){
		 g.fillRect(0, 0, 600, 400);
     	if(Variables.isPlaying == true){
     		for(int x = 0; x < 50; x++){
     			for(int y = 0; y < 50; y++){
     				g.drawImage(Variables.Tiles[x][y],x*32+Variables.cameraX,y*32+Variables.cameraY,32,32,null);
     			}
     		}
     		
     		g.drawImage(Variables.player, Variables.playerX+Variables.cameraX, Variables.playerY+Variables.cameraY, 32, 32, null);
     		 g.drawImage(Variables.ScreenOverlay, 0, 0, 600, 400, null);
     	}else{
     		g.setColor(Color.red);
     		g.fillRect(0, 0, 600, 400);
     	}
     	 
     	 
     	 
     	 g.fillRect(Variables.mouseX, Variables.mouseY, 10, 10);
     	 
     	 
     	 ///  Toggles Game Stats e.g Possition and level ///
     	 if(GameSettings.isOpen == true){
     		 g.fillRect(0, 0, 600, 100);
     		 g.setColor(Color.LIGHT_GRAY);
     		 g.drawString("Player X (OnScreen) =  "+Variables.playerX + "     Player Y (OnScreen) =  "+Variables.playerY, 10, 10);
     		 g.drawString("Player X (OnScreen) =  "+Variables.playerX/32 + "     Player Y (OnScreen) =  "+Variables.playerY/32, 10, 30);

     	 }
     	 
     	
      }
}
